<div class="wrapper-md">
    <ng-form name="userForm" class="form-validation form-horizontal">
        <div class="panel-body">
            <input type="hidden" name="id" value="1014623300325796012">
            <div class="form-group ">
                <div class="col-md-6">
                    <label class="col-md-3 control-label"> <span
                            class="text-danger">*</span> <span translate="user.zhanghao"></span>
                    </label>
                    <div class="col-md-8">
                        <input type="text" name="name" class="form-control" name="account"
                               id="accountID" ng-model="vm.user.account"
                               ng-pattern="app.reg.account" maxlength="32" required
                               uib-tooltip="{{'common.op.remind1' | translate}}" disabled/>
                    </div>
                </div>
                <!-- 员工编号，跳转到员工选择页面的版本 -->
                <!-- <div class="col-md-6">
                     <label class="col-md-3 control-label"> <span
                             class="text-danger">*</span> <span translate="user.yuangongbianhao"></span>
                     </label>
                     <div class="col-md-8">
                         <input class="form-control " name="employeeCode"
                                id="employeeCodeID" maxlength="32" ng-model="vm.user.employeeCode"
                                required ng-pattern="app.reg.account"
                                uib-tooltip="{{'common.op.remind1' | translate}}" disabled/>
                     </div>
                 </div>-->
                <div class="col-md-6">
                    <label class="col-md-3 control-label"> <span
                            class="text-danger">*</span> <span translate="user.yonghuming"></span>
                    </label>
                    <div class="col-md-8">
                        <input type="text" name="name" class="form-control" name="name"
                               id="nameID" ng-model="vm.user.name" maxlength="32" required
                               uib-tooltip="{{'common.op.remind2' | translate}}" disabled/>
                    </div>
                </div>
            </div>
            <div class="form-group ">
                <div class="col-md-6">
                    <label class="col-md-3 control-label"> <span
                            class="text-danger">*</span> <span translate="user.youxiang"></span>
                    </label>
                    <div class="col-md-8">
                        <input type="text" class="form-control" name="email" id="emailID"
                               ng-model="vm.user.email" maxlength="128" required
                               ng-pattern="app.reg.email"
                               uib-tooltip="{{'user.youxiangjiaoyan' | translate}}"/>
                    </div>
                </div>
                <div class="col-md-6">
                    <label class="col-md-3 control-label"> <span
                            translate="user.chuanzhen"></span>
                    </label>
                    <div class="col-md-8">
                        <input type="text" class="form-control" name="fax" id="fax"
                               ng-model="vm.user.fax" maxlength="32" ng-pattern="app.reg.fox"
                               uib-tooltip="{{'user.dianhuajiaoyan' | translate}}"/>
                    </div>
                </div>
            </div>

            <div class="form-group ">

                <div class="col-md-6">
                    <label class="col-md-3 control-label"> <span
                            translate="user.dianhua"></span>
                    </label>
                    <div class="col-md-8">
                        <input type="text" class="form-control" name="telephone"
                               id="telephID" ng-model="vm.user.telephone" maxlength="32"
                               uib-tooltip="{{'user.dianhuajiaoyan' | translate}}"/>
                    </div>
                    <!-- ng-pattern="/(^0[1-9][0-9]{1,2}[\-]?[2-9][0-9]{6,7}$)|^1[3|4|5|7|8]\d{9}/" -->
                    <!-- <div class="col-md-3">
                        <span class="text-danger" ng-show="userForm.telephone.$error.number">只能输入数字</span>
                        <span class="text-danger" ng-show="userForm.telephone.$error.pattern">手机格式不正确</span>
                    </div> -->
                </div>
                <div class="col-md-6">
                    <label class="col-md-3 control-label"> <span
                            translate="user.dizhi"></span>
                    </label>
                    <div class="col-md-8">
                        <input type="text" class="form-control" name="address" id="address"
                               ng-model="vm.user.address" maxlength="255"
                               uib-tooltip="{{'common.op.remind6' | translate}}"/>
                    </div>
                </div>
            </div>
            <div class="form-group ">
                <div class="col-md-6">
                    <label class="col-md-3 control-label"> <span
                            translate="common.remark"></span>
                    </label>
                    <div class="col-md-8">
					<textarea class="form-control" name="description" id="description"
                              ng-model="vm.user.description" maxlength="255"
                              uib-tooltip="{{'common.op.remind6' | translate}}"></textarea>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <button type="submit" class="btn btn-primary  col-lg-offset-1"
                        ng-click="vm.saveUser()" ng-disabled="userForm.$invalid"
                        translate="common.confirm"></button>
            </div>
        </div>

    </ng-form>
</div>
